import type { VxeGridProps } from '#/adapter/vxe-table'
import { getFormkeyByLocale } from '#/utils/localesConfig'
import { $t } from '@vben/locales'

// 列表表头
export const columns: VxeGridProps['columns'] = [
    {
        field: getFormkeyByLocale('name'),
        title: $t('page.system.children.site.children.form.name')
    },
    { field: 'createTime', title: $t('page.orderFormFiled.children.createTime') },
    { field: 'createUser', title: $t('page.orderFormFiled.children.createUser') },
    {
        field: 'action',
        fixed: 'right',
        slots: { default: 'action' },
        title: $t('common.action'),
        width: 120
    }
]

export const formSchema = [
    {
        fieldName: getFormkeyByLocale('name'),
        label: $t('page.system.children.site.children.form.name'),
        component: 'Input'
    }
]
